Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFC: Improve URI decoding in NDEF parser #267

Merged
merged 8 commits into from
Oct 20, 2024

Conversation

jaylikesbunda
Copy link
Contributor

@jaylikesbunda jaylikesbunda commented Oct 14, 2024

What's new

  • New decode_char function for hex to ASCII conversion
  • Updated parse_ndef_uri with decoding step
  • Increased buffer sizes to prevent overflows
  • Added memory allocation checks

Screenshot-20241015-060628


For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

@jaylikesbunda jaylikesbunda changed the title Improve URI decoding in NDEF parser [NFC] Improve URI decoding in NDEF parser Oct 14, 2024
Copy link
Member

@Willy-JL Willy-JL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can get those patched up :D

applications/main/nfc/plugins/supported_cards/ndef.c Outdated Show resolved Hide resolved
applications/main/nfc/plugins/supported_cards/ndef.c Outdated Show resolved Hide resolved
applications/main/nfc/plugins/supported_cards/ndef.c Outdated Show resolved Hide resolved
applications/main/nfc/plugins/supported_cards/ndef.c Outdated Show resolved Hide resolved
applications/main/nfc/plugins/supported_cards/ndef.c Outdated Show resolved Hide resolved
applications/main/nfc/plugins/supported_cards/ndef.c Outdated Show resolved Hide resolved
@Willy-JL Willy-JL changed the title [NFC] Improve URI decoding in NDEF parser NFC: Improve URI decoding in NDEF parser Oct 20, 2024
@Willy-JL Willy-JL added the enhancement New enhancement or request label Oct 20, 2024
@Willy-JL Willy-JL merged commit 7ebbadf into Next-Flip:dev Oct 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New enhancement or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants